package com.springboot.ssm2.service;

import com.springboot.ssm2.mapper.UserMapper;
import com.springboot.ssm2.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author LT
 * @version 1.0.0
 * @ClassName UserService.java
 * @Description TODO
 * @createTime 2020年04月21日 23:58:00
 */
@Service
@Transactional
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public List<User> findAll() {
        return userMapper.findAll();
    }
}
